
<html>

<head>
    <include file="public@head" title="编辑管理员-系统设置"/>
</head>

<body class="layui-layout-admin">
<include file="public@header"/>
<include file="public@side"/>
<div class="layui-body">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a href="{:url('tdadmin/index/index')}">主页</a>
        <a href="">系统设置</a>
        <a href="{:url('tdadmin/member/index')}">普通用户列表</a>
        <a><cite>编辑普通用户</cite></a>
    </div>

    <div class="layui-fluid mgt10">
        <div class="layui-card">
            <div class="layui-card-header">
                编辑普通用户
            </div>
            <div class="layui-card-body">
                <form method="post" action="{:url('edit')}" class="layui-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label">登录账号<span class="form-required">*</span></label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="nick_name" lay-verify="required" value="{$data.nick_name}" disabled="disabled">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">真实姓名</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="real_name" value="{$data.real_name}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">电话<span class="form-required">*</span></label>
                        <div class="layui-input-inline">
                            <input type="tel" class="layui-input" name="phone" value="{$data.phone}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">身份<span class="form-required">*</span></label>
                        <div class="layui-input-inline">
                                <select name="gender">
                                    <option value=""   <eq name="data.gender" value="">selected</eq> >——请选择角色——</option>
                                    <option value="0"  <eq name="data.gender" value="0">selected</eq>>保密</option>
                                    <option value="1"  <eq name="data.gender" value="1">selected</eq>>男</option>
                                    <option value="2"  <eq name="data.gender" value="2">selected</eq>>女</option>
                                </select>

                        </div>
                    </div>
     
                    <div class="layui-form-item">
                        <label class="layui-form-label">企业名称</label>
                        <div class="layui-input-inline">
                            <input type="tel" class="layui-input" name="company"  value="{$data.company}" placeholder="请输入企业名称">
                        </div>
                    </div>

                    <div class="layui-form-item">
                            <label class="layui-form-label">密码<span class="form-required">*</span></label>
                            <div class="layui-input-inline">
                                <input type="password" class="layui-input" name="password"  lay-verType="tips"
                                    placeholder="不修改不需要填写">
                            </div>
                    </div>


                    <div class="layui-form-item">
                        <label class="layui-form-label">是否启用<span class="form-required"></span></label>
                        <div class="layui-input-block">
                            <input type="radio" class="layui-input" name="status" value="1" title="是" <if condition="$data['status'] eq 1">checked="checked"</if> >
                            <input type="radio" class="layui-input" name="status" value="0" title="否" <if condition="$data['status'] eq 0"> checked="checked"</if> >
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="hidden" name="id" value="{$data.id}">
                            <button type="submit" class="layui-btn" lay-submit lay-filter="general">保存</button>
                            <a class="layui-btn layui-btn-primary" href="javascript:history.back(-1);">返回</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<include file="public@scripts"/>
</body>

</html>
